package cn.itsource.api;


import cn.itsource.api.fallback.RuleStartRemoteApiBackFactory;
import cn.itsource.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "it-fccar-server-rule",fallbackFactory = RuleStartRemoteApiBackFactory.class)
public interface RuleStartRemoteApi {
    @GetMapping("/manger/rule/{mileage}")
    public JSONResult valuation(@PathVariable("mileage") String mileage);




    @GetMapping("/manger/rule/base")
    JSONResult getRuleDto(Integer hours);
}
